import React from 'react';
import { Empty, Button } from 'antd';


const NoData = props => {

    return (
        <Empty style={{ margin: '180px 0' }}
            description={
                <>
                    <span style={{ color: '#3D4852', fontSize: 28, height: 56, lineHeight: '56px', display: 'block' }}>{props.title}</span>
                    <span style={{ color: '#8795A1', fontSize: 14 }}>{props.dec}</span>
                </>
            }
        >
            <Button type="primary" onClick={props.callBack}>+ 添加{props.btn}</Button>
        </Empty>
    );
};

export default NoData